import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import { createPinia } from 'pinia'
import router from './router/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import VueCookies from 'vue-cookies';

//pinia实例
const pinia = createPinia()

const app = createApp(App)
    .use(pinia)
    .use(router)
    .use(ElementPlus, {
        locale: zhCn,
    })
    .use(VueCookies)
    .mount('#app')

export default app;